<%@ page language="java" import="java.util.*" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript" src="<%=basePath %>js/jquery.js"></script>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>考试系统</title>
<link rel="stylesheet" type="text/css" href="<%=basePath %>css/exam.css"/>
</head>

<script type="text/javascript">
	function del(){
		window.location.href="<%=request.getContextPath() %>/Paper/PaperAction!paperDel.action?id=${paper.id}";
	}

</script>


<body>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1"> 考试页面预览 </span></td>
              </tr>
            </table>
            </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
  <td>
		
		</br>
		<div style="font-size: 30px;text-align: center; font-weight: 20px">  <s:property value="paper.papername"/>&nbsp;&nbsp;总分 (<s:property value="score"/>分)</div>
<div class="style">		
<s:iterator value="paper.paperPrograms" id="program" status="index">

<div class="nav">
	<pre ><s:property value="#index.index+1" />、<s:property value="#program.title" />&nbsp;&nbsp;&nbsp;(<s:property value="#program.score" />分)</pre>
</div>

<div class="common">
	<s:if test="paper.isjava == 1">
	C时间限制：<s:property value="#program.runtime"/>&nbsp;毫秒&nbsp;|&nbsp;
	C内存限制：<s:property value="#program.memoryforc"/>&nbsp;Kb</br>	
	</s:if>
	<s:else>
	Java时间限制：<s:property value="#program.runtimeforjava"/>&nbsp;毫秒&nbsp;|&nbsp;
	Java内存限制：<s:property value="#program.memoryforjava"/>&nbsp;Kb	
	</s:else>
</div>

<div class="des">
题目内容：<br/>
</div>

<div class="cribe">
<pre ><s:property value="#program.content" /></pre><br/>
</div>

<div class="des">
输入描述：<br/>
</div>

<div class="cribe">
<pre ><s:property value="#program.inputdescribe" /></pre><br/>
</div>

<div class="des">
输出描述：<br/>
</div>

<div class="cribe">
<pre><s:property value="#program.outputdescribe" /></pre><br/>
</div>

<div class="des">
输入样例：<br/>
</div>

<div class="cribe">
<pre ><s:property value="#program.inputsample" /></pre><br/>
</div>

<div class="des">
输出样例：<br/>
</div>

<div class="cribe">
<pre><s:property value="#program.outputsample" /></pre><br/>
</div>
</s:iterator>

  </td>
  </tr>
</table>	

			<s:if test="#session.role== 2 ">
    			<input type="button" value="删除" onclick="del()"/>
    		</s:if>

</div>
</body>
</html>
